<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>监控数据采集及分析系统</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">监控数据采集及分析系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    Reisen
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;" >虚拟机监控项</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/vm/monitor-redis.html">redis最新数据</a>
                        </dd>
                        <dd>
                            <a href="/vm/monitor-cpu.html">cpu</a>
                        </dd>
                        <dd>
                            <a href="/vm/monitor-memory.html">内存占用</a>
                        </dd>
                        <dd>
                            <a href="/vm/monitor-status.html">虚拟机中间件状态监控</a>
                        </dd>

                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">主机监控</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/host/memory.html">jvm内存占用</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">业务监控</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/host/monitor-oper-log.html">操作日志记录监控</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">告警监控</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="/host/monitor-menu.html">监控项设置</a>
                            <a href="/host/monitor-event.html">告警项详情</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <!--  <div style="padding: 15px;">内容主体区域</div>-->
        <iframe id="ifm" src="/vm/monitor-cpu.html"  class="layadmin-iframe" frameborder="0"
                style="width: 100%;height: 100%"></iframe>
    </div>


    <!--底部-->
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © com.cloudwise 监控数据采集及分析系统
    </div>
</div>
<script src="/layui/layui.js"></script>
<!--点击不同功能，iframe页面显示不同-->
<script>
    //JavaScript代码区域
    layui.use(['element','jquery'], function(){
        let element = layui.element;
        let $ = layui.jquery;
        //使用jquery元素选择器
        $("dd>a").click(function (e) {
            //阻止herf标签跳转
            e.preventDefault();
            let url = $(this).attr("href");
            $("#ifm").attr("src",url);
        });
    });
</script>
</body>
</html>